class AddPhotosToEvents < ActiveRecord::Migration
def self.up
    add_column :events, :avatar_file_name, :string
    add_column :events, :avatar_content_type, :string
    add_column :events, :avatar_file_size, :integer
	drop_table :locations
  end
 
  def self.down
    remove_column :events, :avatar_file_name
    remove_column :events, :avatar_content_type
    remove_column :events, :avatar_file_size
    create_table :locations do |t|
      t.date :start
      t.date :end
      t.decimal :latitude
      t.decimal :longitude
      t.string :title
      t.string :photo
      t.timestamps
  end
end
